package cn.com.cym.gamezao.entity.grk;

import cn.com.cym.gamezao.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Accessors(chain = true)
@Table(name ="sample_sample")
@ApiModel(description = "样本管理")
public class Sample extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -5136780617879747111L;

    @ManyToOne
    @JoinColumn(name = "diagnose_id")
    @JsonProperty(access = JsonProperty.Access.READ_WRITE)
    private Diagnose diagnose;

    /**
     * 样本类型 血清 血小板 ...
     */
    @Column(length = 20)
    private String typeId;

    /**
     * 剩余量
     */
    @Column(length = 600 )
    private String surplus;


    /**
     * 编码
     */
    @Column(length = 20)
    private String code;

    /**
     * 备注
     */
    @Column(length =200)
    private String memo;

    /**
     * 流水号
     */
    @Column(length = 10)
    private String serNo;


    /**
     * 样本所在冰箱位置
     */
    @Column(length = 40)
    private String position;
}
